package com.example.dao;

import com.example.entity.Month;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.data.neo4j.repository.query.Query;

/**
 *
 */
public interface MonthRepository extends Neo4jRepository<Month, Long> {

    @Query("MATCH (m:Month) WHERE m.year = $year and m.month = $month RETURN m limit 1")
    Month findByYearAndMonth(String year, String month);

}
